<?php

class ZFKiller_View_Helper_HeadJavascript extends Zend_View_Helper_HeadScript {

	public function appendFile($js, $lib='') {
		return parent::appendFile($lib . $js);
	}

	public function enableJquery() {
		$this->appendFile('/lib/jq.js');
	}
	
	public function enableJqueryLoading() {
		$this->enableJquery();
		$this->enableJqueryUi();
		$this->appendFile('/lib/jq.loading.js');
	}
	
	public function enableJqueryUi() {
		$this->appendFile('/lib/jq-ui/jq-ui.js');
		$this->view->headLink()->appendStylesheet('/lib/jq-ui/css/redmond/jquery-ui-1.8.16.custom.css');
	}

	public function headJavascript($mode = Zend_View_Helper_HeadScript::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript') {
		return parent::headScript($mode, $spec, $placement, $attrs, $type);
	}

}